<template>
	<view class="page">
		<view class="top">
			<view class="list">
				<view class="tag">本年度</view>
				<view class="total">
					<view>
						<text>累计加醇(次)</text>
						<text>0</text>
					</view>
					<view>
						<text>累计消费(元)</text>
						<text>0</text>
					</view>
					<view>
						<text>累计节省(元)</text>
						<text>0</text>
					</view>
				</view>
			</view>
		</view>
		<view>
			<view class="screen">
				<view class="time" @click="show = true">
					<text style="margin-right:10rpx;">时间筛选</text>
					<u-icon name="arrow-down" size="14px"></u-icon>
				</view>
				<u-datetime-picker :show="show" v-model="value1" mode="year-month"
					@cancel="show = false"></u-datetime-picker>
			</view>
		</view>
		<view class="content">

			<view class="month">
				<text>2024年1月</text>
			</view>
			<view class="charge-list">
				<view class="item">
					<view><text>中博石化宏运加醇站</text><text class="highlight">交易成功</text></view>
					<view><text>订单号：33422345454535259</text><text>2023.11.28 14:00</text></view>
					<view><text>消费：￥200 优惠：￥0 积分：200</text></view>
					<view><text>支付方式：微信</text></view>
				</view>
				<view class="item">
					<view><text>中博石化宏运加醇站</text><text class="highlight">交易成功</text></view>
					<view><text>订单号：33422345454535259</text><text>2023.11.28 14:00</text></view>
					<view><text>消费：￥200 优惠：￥0 积分：200</text></view>
					<view><text>支付方式：微信</text></view>
				</view>
			</view>
		</view>
	</view>
</template>
<script >

export default {
	data() {
		return {
			show: false
		};
	},
	methods: {},
}
</script>
<style lang="scss" scoped>
page {
	background-color: #F4F5F7 !important;
}

.highlight {
	color: #F21E46;
}

.screen {
	display: flex;
	margin-bottom: 20rpx;
	background-color: #fff;
	padding: 10rpx 20rpx;
}

.time {
	font-size: 24rpx;
	padding: 10rpx;
	border: 1px solid #ddd;
	display: flex;
	justify-content: flex-start;
	border-radius: 40rpx;

}

.top {
	background: linear-gradient(180deg, #3A61ED 0%, #5656F1 100%);
	padding: 20rpx;

	.list {
		position: relative;
		background-color: #fff;
		border-radius: 10rpx;
		padding: 20rpx;
		padding-top: 60rpx;
		font-size: 28rpx;
	}

	.tag {
		position: absolute;
		background-color: #3A61ED;
		border-radius: 0 20rpx 20rpx 0;
		font-size: 20rpx;
		color: #fff;
		padding: 5rpx 10rpx;
		left: 0;
		top: 10rpx;
	}

	.total {
		@include flex-center(row, space-between, center);

		view {
			@include flex-center(column, center, center);
			border-right: 1px solid #eee;
			padding-right: 40rpx;

			>text {
				margin-bottom: 10rpx;
			}

			&:last-child {
				border-right: 0px;
			}
		}
	}
}

.content {
	padding: 20rpx;

	.month {
		background-color: #3A61ED;
		color: #fff;
		padding: 10rpx;
		border-radius: 10rpx;
	}

	.charge-list {
		.item {
			padding: 20rpx;
			background-color: #fff;
			border-radius: 10rpx;
			margin-top: 20rpx;

			>view {
				font-size: 24rpx;
				line-height: 40rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
			}

			.refund-btn {
				color: #3A61ED;
			}
		}
	}
}
</style>
